package com.system.cacheCenterBackend.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "spring.cache.hot-key")
public class HotKeyConfig {
    /**
     * 热点key访问阈值
     */
    private int threshold = 3;

    public int getThreshold() {
        return threshold;
    }

    public void setThreshold(int threshold) {
        this.threshold = threshold;
    }
}